import request from '@/utils/request'

// 查询sericeArea列表
export function listServiceArea(query) {
  return request({
    url: '/system/serviceArea/list',
    method: 'get',
    params: query
  })
}

// 查询sericeArea详细
export function getServiceArea(guid) {
  return request({
    url: '/system/serviceArea/' + guid,
    method: 'get'
  })
}

// 新增sericeArea
export function addServiceArea(data) {
  return request({
    url: '/system/serviceArea',
    method: 'post',
    data: data
  })
}

// 修改sericeArea
export function updateServiceArea(data) {
  return request({
    url: '/system/serviceArea',
    method: 'put',
    data: data
  })
}

// 删除sericeArea
export function delServiceArea(guid) {
  return request({
    url: '/system/serviceArea/' + guid,
    method: 'delete'
  })
}

// 导出sericeArea
export function exportServiceArea(query) {
  return request({
    url: '/system/serviceArea/export',
    method: 'get',
    params: query
  })
}

// 查询sericeArea
export function checkServiceArea(query) {
  return request({
    url: '/system/serviceArea/checkServiceArea',
    method: 'get',
    params: query
  })
}